<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<style type="text/css"> @media print { body { display:none } } </style>
<body style="font-family:Arial, Helvetica, sans-serif; font-size:12px; background-image:url(/images/bk-unoffical.png);">

<table width="800" border="1" cellspacing="0" cellpadding="10">
  <tr>
    <td align="center">ID</td>
    <td align="center">Date</td>
    <td align="center">Shop</td>
    <td align="center">Problem Description</td>
    <td align="center">Affect Hours</td>
  </tr>
  <?php foreach($this->arrResult as $k => $v) {
	
	if($v['shop_head'] == "ADPC" || $v['shop_head'] == "CLPC" || $v['shop_head'] == "CLIC" || $v['shop_head'] == "WLIC" ){
		date_default_timezone_set("Australia/Adelaide");
		}
	else{
		date_default_timezone_set("Australia/Melbourne");
		}
	?>  
  <tr>
    <td><?php echo $v['id_sheet']?>
    <!--[<?php echo date_default_timezone_get();?>]-->
    </td>
    <td><?php echo date("Y-m-d",$v['confirm_shift_begin'])?></td>
    <td><?php echo $v['shop_head']?></td>
    <td><?php
    foreach($v['error'] as $em){echo $em."<br />";}?></td>
    <td><?php echo round($v['affect']/3600,2);?></td>
  </tr>
<?php }?>  
</table>


</body>
</html>
